﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace DTOTemplatedGenerator.Models
{
    public class TypesTransModel
    {
        ObservableCollection<TypeMatchModel> _matchs = new ObservableCollection<TypeMatchModel>();

        public string Name { get; set; }

        public string MatchesView 
        { 
            get 
            {
                return string.Join(Environment.NewLine, _matchs.Select(m => m.Source + "->" + m.Match));
            } set { } 
        }
        public ObservableCollection<TypeMatchModel> Matchs
        {
            get { return _matchs; }
            set
            {                
                _matchs = value;             
            }
        }        

        public TypesTransModel() {            
        }
    }

    public class TypeMatchModel {
        public string Source { get; set; }
        public string Match { get; set; }
    }
}
